import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';
import {ListComponent} from './list/list.component';
import {AddComponent} from './add/add.component';
import {LogisticsComponent} from './logistics/logistics.component';
import {DeliverComponent} from './deliver/deliver.component';
import {ModifyComponent} from './modify/modify.component';

export const routes: Routes = [
  {
    path: 'list',
    component: ListComponent,
    children: []
  },
  {
    path: 'logistics/:id',
    component: LogisticsComponent,
    children: []
  },
  {
    path: 'deliver/:id',
    component: DeliverComponent,
    children: []
  }, {
    path: 'add',
    component: AddComponent,
    children:[]
  },
  {
    path: 'modify/:id',
    component: ModifyComponent,
    children: []
  }
];

export const routing: ModuleWithProviders = RouterModule.forChild(routes);
